// const wxChatWeb = require('../../config').wxChatWeb
// const sha1 = require('../../util/sha1')
module.exports = [
  {
    url: '/',
    method: 'get',
    request: (req, res) => {
      console.log(req.query)
      // let token = wxChatWeb.token;
      // const { signature,nonce,timestamp,echostr } = req.query
      // let str = [token, timestamp, nonce].sort().join('')
      // let skey = sha1(str);
      // if ((skey = signature)) {
      //   res.status(200).send(echostr + "");
      // } else {
      //   res.status(400).send("wrong");
      // }
      req.session.session_id = 'hello word! 帅哥'
      res.render('wx/index', {
        title: 'hello word! 帅哥'
      })
    }
  }
]
